<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8'>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <span>'待输入的文本：'</span>
        <p style="white-space: pre-line;">{{ msg }}</p>
        <br>
        <textarea v-model="msg" placeholder="在这里输入内容"></textarea>
    </div>
</body>
<script src="../vue.js"></script>
<script>
new Vue({
    el:"#app",
    data:{
        msg:''
    }
})
</script>
</html>